package com.wingstudio.springcloud.service.Impl;
import com.wingstudio.springcloud.dao.PaymentDao;
import com.wingstudio.springcloud.entities.Payment;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wingstudio.springcloud.service.PaymentService;

/**
 * @Author ITcz
 * @Data 2020-12-07 - 21:59
 */

@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    PaymentDao paymentDao;

    @Override
    public int create(Payment payment) {
        return paymentDao.create(payment);
    }

    @Override
    public Payment getPaymentById(long id) {
        return paymentDao.getPaymentById(id);
    }


}
